export const inBrowser = typeof window !== 'undefined';

export const isIOS = () =>
	inBrowser ?
	/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) :
	false;

export const extend = Object.assign;